<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.global.js"></script>
</head>

<body>
    <div id="app"></div>
    <script>
        const app = Vue.createApp({
            template:
                `
                <child v-slot:aa>
                    <span>4564646</span>
                </child>
                <child v-slot:bb>
                    <button type="button" style="width:50px;height:30px"/>  
                </child>
                `
        });

        app.component('Child', {
            template:
                `
                <div>
                    <slot name="aa"></slot>    
                    <slot name="bb"></slot>    
                </div>  
            `,
            setup(props,config) {
                let {attrs} = config;
                console.log(attrs);
            }
        })
        const vm = app.mount("#app");   
    </script>
</body>

</html>